package org.ccay.demo.address.service;

import java.util.List;

import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.ccay.core.base.PageVO;
import org.ccay.core.base.PagedResult;
import org.ccay.demo.address.vo.CityVO;
import org.ccay.demo.address.vo.ProvinceVO;
import org.ccay.demo.student.StudentVO;

@Path("/address")
@Produces("application/json")
public interface IAddressService {
	
	@GET
	@Path("/listAllProvinces")
	List<ProvinceVO> listAllProvinces();
	
	@GET
	@Path("/listAllCities")
	List<CityVO> listAllCities();
	
	@GET
	@Path("/listCitiesByProvincesId/{provinceId}")
	List<CityVO> listCitiesByProvincesId(@PathParam("provinceId") Long provinceId);
	
	
	@GET
	@Path("/listProvinces/page/{pageSize}/{curPage}")
	PagedResult<ProvinceVO> listProvinces(@QueryParam("") ProvinceVO condtion, @PathParam("") PageVO pageVO);
	
	@POST
	@Path("/listProvinces")
	List<ProvinceVO> listProvincesByIds(List<Long> provinceIds);
	
	
	@GET
	@Path("/listCities/page/{pageSize}/{curPage}")
	PagedResult<CityVO> listCities(@QueryParam("") CityVO condtion, @PathParam("") PageVO pageVO);
	
	@POST
	@Path("/listCities")
	List<CityVO> listCitiesByIds(List<Long> provinceIds);
	
	
	

}
